<template>
    <div>
        <van-grid :column-num="5">
            <van-grid-item v-for="(item) in list" :key="item.id"> 
                <img class="menu-img" :src="item.imgUrl" >
                <span class="menu-text">{{ item.text }}</span>
                <!-- <van-text>{{ item.text }}</van-text> -->
            </van-grid-item>
        </van-grid>
    </div>
</template>

<script>
export default {
    props: {
        list: {
            require: false,
            type: Array,
            default: ()=>{
                return []
            }
        }
    }
}
</script>

<style lang="less" scoped>

.menu-img {
    width: 30px;
    height: 30px;
}

.menu-text {
    font-size: 13px;
    margin-top: 5px;
}
</style>